UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

Cron must not execute programs in, or subordinate to, world-writable directories.


Overview

Finding ID Version Rule ID IA Controls Severity
V-977 GEN003020 SV-64403r1_rule Medium
Description
If cron programs are located in or subordinate to world-writable directories, they become vulnerable to removal and replacement by malicious users or system intruders.
STIG Date
Oracle Linux 5 Security Technical Implementation Guide 2017-03-01

Details

Check Text ( C-52803r2_chk )
List all cronjobs on the system.
Procedure:

# ls /var/spool/cron

# ls /etc/cron.d /etc/crontab /etc/cron.daily /etc/cron.hourly /etc/cron.monthly /etc/cron.weekly
or
# ls /etc/cron*|grep -v deny

If cron jobs exist under any of the above directories, use the following command to search for programs executed by at:

# more

Perform a long listing of each directory containing program files found in the cron file to determine if the directory is world-writable.

# ls -ld

If cron executes programs in world-writable directories, this is a finding.
Fix Text (F-54985r2_fix)
Remove the world-writable permission from the cron program directories identified.

Procedure:
# chmod o-w